import request from "@/utils/request";

export const register = (data) => {
  return request.post("/user/registered", data);
};
export const login = (data) => {
  return request.post("/user/login", data);
};
export const swiper = () => {
  return request.get("/home/swiper");
};
export const theuse = () => {
  return request.get("/user");
};
export const collection = () => {
  return request.get("/user/favorites");
};
export const rental = () => {
  return request.get("/user/houses");
};
